package org.itheima.service.impl;

import org.itheima.mapper.LogsMapper;
import org.itheima.service.LogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class LogsServiceImpl implements LogsService {

    @Autowired
    private LogsMapper logsMapper;


    @Override
    public void insertLogs(int user_id,String operate) {
        logsMapper.insertLogs(user_id,operate);
    }

    @Override
    public List<Map<String, Object>> ViewTheLogs() {
        return logsMapper.ViewTheLogs();
    }
}
